//用于给角色列表添加多选框
var roleListGirdCheckBox = Ext.create('Ext.selection.CheckboxModel', {
	listeners: {
		selectionchange: function(sm, selections) {
			role_gird.down('#roleListDeleteButton').setDisabled(
				selections.length === 0);
		}
	}
});

//用于给添加角色的表单的角色grid panel添加多选框
var addRoleFormGridCheckBox = Ext.create('Ext.selection.CheckboxModel');

//用于给角色权限列表添加多选框
var roleAuthGirdCheckBox = Ext.create('Ext.selection.CheckboxModel', {
	listeners: {
		selectionchange: function(sm, selections) {
			roleAuthGird.down('#roleAuthDeleteButton').setDisabled(selections.length === 0);
		}
	}
});

//用于给用户管理Tab下的grid panel添加多选框
var userListGridCheckBox = Ext.create('Ext.selection.CheckboxModel', {
	listeners: {
		selectionchange: function(sm, selections) {
			userList.down('#userListDeleteButton').setDisabled(selections.length === 0);
			userList.down('#userListEditorButton').setDisabled(selections.length != 1);

		}
	}
});

//用于给添加用户的表单的角色grid panel添加多选框
var registerFormGridCheckBox = Ext.create('Ext.selection.CheckboxModel', {
	listeners: {
		selectionchange: function(sm, selections) {
			registerForm.down('button').setDisabled(selections.length === 0);
		}
	}
});

//用于给编辑用户的表单的角色grid panel添加多选框
var editorUserFormGridCheckBox = Ext.create('Ext.selection.CheckboxModel', {
	listeners: {
		selectionchange: function(sm, selections) {
			editorUserForm.down('button').setDisabled(selections.length === 0);
		}
	}
});

//用于给权限列表添加多选框
var authListCheckBox = Ext.create('Ext.selection.CheckboxModel', {
	listeners: {
		selectionchange: function(sm, selections) {
			authList.down('#authDeleteButton').setDisabled(selections.length === 0);
		}
	}
});

//用于给角色可添加权限列表添加多选框
var roleAddAuthGirdCheckBox = Ext.create('Ext.selection.CheckboxModel', {
	listeners: {
		selectionchange: function(sm, selections) {
			roleAddAuthWin.down('#roleAddAuthWinButton').setDisabled(selections.length === 0);
		}
	}
});

//用于给用户-角色grid panel添加多选框
var userRoleGridCheckBox = Ext.create('Ext.selection.CheckboxModel', {
	listeners: {
		selectionchange: function(sm, selections) {
			userWin.down('#userWinButton').setDisabled(selections.length === 0);
		}
	}
});